<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>NSString(TFCore) Category Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">TFFoundation </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">“Timeface”</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/tf_aes256DecryptWithKey:">- tf_aes256DecryptWithKey:</option>
		
		<option value="//api/name/tf_aes256EncryptWithKey:">- tf_aes256EncryptWithKey:</option>
		
		<option value="//api/name/tf_base64EncodedString">- tf_base64EncodedString</option>
		
		<option value="//api/name/tf_heightForFont:width:">- tf_heightForFont:width:</option>
		
		<option value="//api/name/tf_isBankCardNumber">- tf_isBankCardNumber</option>
		
		<option value="//api/name/tf_isChinese">- tf_isChinese</option>
		
		<option value="//api/name/tf_isContainChinese">- tf_isContainChinese</option>
		
		<option value="//api/name/tf_isEmailAddress">- tf_isEmailAddress</option>
		
		<option value="//api/name/tf_isEmoji">- tf_isEmoji</option>
		
		<option value="//api/name/tf_isIdentityCardNumber">- tf_isIdentityCardNumber</option>
		
		<option value="//api/name/tf_isIncludingEmoji">- tf_isIncludingEmoji</option>
		
		<option value="//api/name/tf_isMatchRegex:">- tf_isMatchRegex:</option>
		
		<option value="//api/name/tf_isPhoneNumber">- tf_isPhoneNumber</option>
		
		<option value="//api/name/tf_isWebUrl">- tf_isWebUrl</option>
		
		<option value="//api/name/tf_jsonObject">- tf_jsonObject</option>
		
		<option value="//api/name/tf_md5String">- tf_md5String</option>
		
		<option value="//api/name/tf_numberWithFormatter:">- tf_numberWithFormatter:</option>
		
		<option value="//api/name/tf_pinyinCharArray">- tf_pinyinCharArray</option>
		
		<option value="//api/name/tf_pinyinInitialString">- tf_pinyinInitialString</option>
		
		<option value="//api/name/tf_pinyinString">- tf_pinyinString</option>
		
		<option value="//api/name/tf_pinyinStringWithPhoneticSymbol">- tf_pinyinStringWithPhoneticSymbol</option>
		
		<option value="//api/name/tf_pinyinStringWithoutBlank">- tf_pinyinStringWithoutBlank</option>
		
		<option value="//api/name/tf_pinyinUppercaseInitialString">- tf_pinyinUppercaseInitialString</option>
		
		<option value="//api/name/tf_removeEmojiString">- tf_removeEmojiString</option>
		
		<option value="//api/name/tf_sizeForFont:">- tf_sizeForFont:</option>
		
		<option value="//api/name/tf_sizeForFont:constrainedSize:mode:">- tf_sizeForFont:constrainedSize:mode:</option>
		
		<option value="//api/name/tf_urlDecodeString">- tf_urlDecodeString</option>
		
		<option value="//api/name/tf_urlEncodedString">- tf_urlEncodedString</option>
		
		<option value="//api/name/tf_utf8Data">- tf_utf8Data</option>
		
		<option value="//api/name/tf_widthForFont:">- tf_widthForFont:</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">NSString(TFCore) Category Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Declared in</th>
	<td>NSString+TFCore.h<br />NSString+TFCore.m</td>
</tr>
						</tbody></table></div>
					

                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>NSString常用类别</p>
					</div>
					
					

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						<a title="字符串编码和解码以及加密" name="task_字符串编码和解码以及加密"></a>
						<h2 class="task-title">字符串编码和解码以及加密</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/tf_md5String" title="tf_md5String"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_md5String">&ndash;&nbsp;tf_md5String</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取字符串对应的md5字符串</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_md5String</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取字符串对应的md5字符串</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_base64EncodedString" title="tf_base64EncodedString"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_base64EncodedString">&ndash;&nbsp;tf_base64EncodedString</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取字符串对应的base64字符串</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_base64EncodedString</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取字符串对应的base64字符串</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_urlEncodedString" title="tf_urlEncodedString"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_urlEncodedString">&ndash;&nbsp;tf_urlEncodedString</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取字符串对应的url编码过后的字符串</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_urlEncodedString</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取字符串对应的url编码过后的字符串</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_urlDecodeString" title="tf_urlDecodeString"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_urlDecodeString">&ndash;&nbsp;tf_urlDecodeString</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取字符串对应的url解码过后的字符串</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_urlDecodeString</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取字符串对应的url解码过后的字符串</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_aes256EncryptWithKey:" title="tf_aes256EncryptWithKey:"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_aes256EncryptWithKey:">&ndash;&nbsp;tf_aes256EncryptWithKey:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>对字符串进行aes256加密</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_aes256EncryptWithKey:(nonnull NSString *)<em>key</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>key</code></th>
						<td><p>秘钥</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>对字符串进行aes256加密</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_aes256DecryptWithKey:" title="tf_aes256DecryptWithKey:"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_aes256DecryptWithKey:">&ndash;&nbsp;tf_aes256DecryptWithKey:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>对字符串进行aes256解密</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_aes256DecryptWithKey:(nonnull NSString *)<em>key</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>key</code></th>
						<td><p>秘钥</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>对字符串进行aes256解密</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						

						<a title="字符串大小计算" name="task_字符串大小计算"></a>
						<h2 class="task-title">字符串大小计算</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/tf_sizeForFont:constrainedSize:mode:" title="tf_sizeForFont:constrainedSize:mode:"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_sizeForFont:constrainedSize:mode:">&ndash;&nbsp;tf_sizeForFont:constrainedSize:mode:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据字体的大小和限制的大小获取对应的字符串size</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (CGSize)tf_sizeForFont:(nonnull UIFont *)<em>font</em> constrainedSize:(CGSize)<em>constrainedSize</em> mode:(NSLineBreakMode)<em>lineBreakMode</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>font</code></th>
						<td><p>字体大小</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>constrainedSize</code></th>
						<td><p>约束的范围</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>lineBreakMode</code></th>
						<td><p>截取字符串的方式</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>CGSize</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据字体的大小和限制的大小获取对应的字符串size</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_sizeForFont:" title="tf_sizeForFont:"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_sizeForFont:">&ndash;&nbsp;tf_sizeForFont:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据字体大小获取获取对应字符串的size</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (CGSize)tf_sizeForFont:(nonnull UIFont *)<em>font</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>font</code></th>
						<td><p>字体大小</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>CGSize</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据字体大小获取获取对应字符串的size</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_widthForFont:" title="tf_widthForFont:"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_widthForFont:">&ndash;&nbsp;tf_widthForFont:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据字体的大小获取宽度</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (CGFloat)tf_widthForFont:(nonnull UIFont *)<em>font</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>font</code></th>
						<td><p>字体大小</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>CGFloat</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据字体的大小获取宽度</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_heightForFont:width:" title="tf_heightForFont:width:"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_heightForFont:width:">&ndash;&nbsp;tf_heightForFont:width:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据字体的大小和约束的宽度来获取高度</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (CGFloat)tf_heightForFont:(nonnull UIFont *)<em>font</em> width:(CGFloat)<em>width</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>font</code></th>
						<td><p>字体大小</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>width</code></th>
						<td><p>宽度</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>CGFloat</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据字体的大小和约束的宽度来获取高度</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						

						<a title="中文字符串转汉语拼音" name="task_中文字符串转汉语拼音"></a>
						<h2 class="task-title">中文字符串转汉语拼音</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/tf_pinyinStringWithPhoneticSymbol" title="tf_pinyinStringWithPhoneticSymbol"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_pinyinStringWithPhoneticSymbol">&ndash;&nbsp;tf_pinyinStringWithPhoneticSymbol</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>将中文字符串转换成带声调的拼音字符串，例：重庆&ndash;chóng qìng</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_pinyinStringWithPhoneticSymbol</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>将中文字符串转换成带声调的拼音字符串，例：重庆&ndash;chóng qìng</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_pinyinString" title="tf_pinyinString"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_pinyinString">&ndash;&nbsp;tf_pinyinString</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>将中文字符串转换成不带声调的拼音字符串，例：重庆&ndash;chong qing</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_pinyinString</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>将中文字符串转换成不带声调的拼音字符串，例：重庆&ndash;chong qing</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_pinyinCharArray" title="tf_pinyinCharArray"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_pinyinCharArray">&ndash;&nbsp;tf_pinyinCharArray</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>每个字的拼音字符串数组</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSArray&lt;NSString*&gt; *)tf_pinyinCharArray</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSArray<NSString *> *</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>每个字的拼音字符串数组</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_pinyinStringWithoutBlank" title="tf_pinyinStringWithoutBlank"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_pinyinStringWithoutBlank">&ndash;&nbsp;tf_pinyinStringWithoutBlank</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>将中文字符转换成一个不带空格的完整字符串，例：重庆&ndash;chongqing</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_pinyinStringWithoutBlank</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>将中文字符转换成一个不带空格的完整字符串，例：重庆&ndash;chongqing</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_pinyinInitialString" title="tf_pinyinInitialString"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_pinyinInitialString">&ndash;&nbsp;tf_pinyinInitialString</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取字符串汉语拼音的首字母，默认小写</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_pinyinInitialString</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取字符串汉语拼音的首字母，默认小写</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_pinyinUppercaseInitialString" title="tf_pinyinUppercaseInitialString"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_pinyinUppercaseInitialString">&ndash;&nbsp;tf_pinyinUppercaseInitialString</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取大写的首字母</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_pinyinUppercaseInitialString</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取大写的首字母</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_isMatchRegex:" title="tf_isMatchRegex:"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_isMatchRegex:">&ndash;&nbsp;tf_isMatchRegex:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否符合正则表达式</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)tf_isMatchRegex:(nonnull NSString *)<em>regex</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>regex</code></th>
						<td><p>正则表达式</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>BOOL</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>是否符合正则表达式</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_isPhoneNumber" title="tf_isPhoneNumber"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_isPhoneNumber">&ndash;&nbsp;tf_isPhoneNumber</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否电话号码</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)tf_isPhoneNumber</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>BOOL</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>是否电话号码</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_isEmailAddress" title="tf_isEmailAddress"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_isEmailAddress">&ndash;&nbsp;tf_isEmailAddress</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否邮箱地址</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)tf_isEmailAddress</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>BOOL</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>是否邮箱地址</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_isIdentityCardNumber" title="tf_isIdentityCardNumber"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_isIdentityCardNumber">&ndash;&nbsp;tf_isIdentityCardNumber</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否身份证号码</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)tf_isIdentityCardNumber</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>BOOL</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>是否身份证号码</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_isBankCardNumber" title="tf_isBankCardNumber"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_isBankCardNumber">&ndash;&nbsp;tf_isBankCardNumber</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否银行卡卡号</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)tf_isBankCardNumber</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>BOOL</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>是否银行卡卡号</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_isWebUrl" title="tf_isWebUrl"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_isWebUrl">&ndash;&nbsp;tf_isWebUrl</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否网络地址</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)tf_isWebUrl</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>BOOL</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>是否网络地址</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_isChinese" title="tf_isChinese"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_isChinese">&ndash;&nbsp;tf_isChinese</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否中文</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)tf_isChinese</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>BOOL</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>是否中文</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						

						<a title="其他方法" name="task_其他方法"></a>
						<h2 class="task-title">其他方法</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/tf_isEmoji" title="tf_isEmoji"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_isEmoji">&ndash;&nbsp;tf_isEmoji</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>判断一个字符串是否是墨迹表情</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)tf_isEmoji</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>BOOL</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>判断一个字符串是否是墨迹表情</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_isIncludingEmoji" title="tf_isIncludingEmoji"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_isIncludingEmoji">&ndash;&nbsp;tf_isIncludingEmoji</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>检测字符串中是否包含墨迹表情</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)tf_isIncludingEmoji</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>BOOL</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>检测字符串中是否包含墨迹表情</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_removeEmojiString" title="tf_removeEmojiString"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_removeEmojiString">&ndash;&nbsp;tf_removeEmojiString</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>移除所有的墨迹表情之后的字符串</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSString *)tf_removeEmojiString</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSString</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>移除所有的墨迹表情之后的字符串</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_isContainChinese" title="tf_isContainChinese"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_isContainChinese">&ndash;&nbsp;tf_isContainChinese</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>判断字符串中是否包含中文</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)tf_isContainChinese</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>BOOL</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>判断字符串中是否包含中文</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_utf8Data" title="tf_utf8Data"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_utf8Data">&ndash;&nbsp;tf_utf8Data</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>将字符串通过UTF8编码转换成NSData</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSData *)tf_utf8Data</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSData</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>将字符串通过UTF8编码转换成NSData</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_jsonObject" title="tf_jsonObject"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_jsonObject">&ndash;&nbsp;tf_jsonObject</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>转换成对应的json对象</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nullable id)tf_jsonObject</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>id</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>转换成对应的json对象</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tf_numberWithFormatter:" title="tf_numberWithFormatter:"></a>
	<h3 class="method-title"><code><a href="#//api/name/tf_numberWithFormatter:">&ndash;&nbsp;tf_numberWithFormatter:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>将字符串转换成对应的NSNumber</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSNumber *)tf_numberWithFormatter:(NSNumberFormatterStyle)<em>formatterStyle</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>formatterStyle</code></th>
						<td><p>格式化方式</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSNumber</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>将字符串转换成对应的NSNumber</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">NSString+TFCore.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2017 “Timeface”. All rights reserved. Updated: 2017-08-17</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>